<%@ page import="com.wl.shixun5.info.BuyerInfo"%>
<%@ page import="com.wl.shixun5.dao.BuyerInfo_DAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>2350300097 万朗</title>
</head>
<body>
<%
    String memberID = request.getParameter("memberID");
    String pwd = request.getParameter("pwd");
    BuyerInfo buyer = new BuyerInfo();
    if (!BuyerInfo_DAO.isMember(memberID, pwd)) {
        request.setAttribute("error", "会员代码或密码不正确！");
        request.getRequestDispatcher("index.jsp").forward(request, response);
    } else {
        buyer = BuyerInfo_DAO.buyer;
        session.setAttribute("memberID", buyer.getMemberID());
    }
%>

<p align="center"><strong><font size="7">小万网上书店</font></strong></p>
<p align="center">&nbsp;</p>
<p align="center"><strong><font color="#FF0000" size="5">
    <%=buyer.getMembername() %></font></strong></p>
<p align="center"><strong><font size="5">欢迎您第<font color="#FF0000">
    <%=buyer.getLoginTimes() %></font>次光临本小店</font></strong></p>
<p align="center">&nbsp;</p>
<p align="center"><a href="booklist.jsp"><font size="5">进入书店</font></a></p>
</body>
</html>
